<?php


namespace app\api\controller;


use app\api\BaseController;
use think\facade\Db;

class Manager extends BaseController
{
    public function index()
    {
        halt('管理员专用');
    }
//    public function clear()
//    {
//        $arr = [
////            "fy_bom",
////            "fy_bom_detail",
////            "fy_craft",
////            "fy_craft_route",
////            "fy_craft_route_detail",
//            "fy_in_receipt",
//            "fy_in_receipt_detail",
////            "fy_inventory_order",
////            "fy_inventory_order_detail",
////            "fy_material_dossier",
////            "fy_material_type",
////            "fy_out_receipt",
////            "fy_out_receipt_detail",
////            "fy_process_reporting",
////            "fy_production_plan",
////            "fy_production_plan_detail",
////            "fy_production_plan_ycl",
////            "fy_purveyor",
////            "fy_purveyor_begin",
////            "fy_purveyor_price",
////            "fy_purveyor_ticket",
////            "fy_team",
////            "fy_team_detail",
////            "fy_transfer_order",
////            "fy_transfer_order_detail",
////            "fy_warehouse",
////            "fy_warehouse_detail",
//            "fy_in_receipt",
//            "fy_in_receipt_detail",
////            "fy_inventory_order",
////            "fy_inventory_order_detail",
//            "fy_other_expend",
////            "fy_sale_hanging_bill",
////            "fy_sale_reconcile",
////            "fy_receipt_order",
////            "fy_receipt_order_detail",
////            "fy_cost_share",
////            "fy_cost_share_data_detail",
////            "fy_cost_share_detail",
////            "fy_piece_rate_detail",
//////            "fy_company",//fyhh独有
////            "fy_purveyor_member",
//            "fy_stock_order",
//            "fy_stock_order_detail",
//            "fy_sale_contract_detail",
//            "fy_sale_contract",
//            "fy_sale_contract_lock",
//            'fy_sale_contract_record',
//            'fy_sale_contract_record_detail',
//            "fy_quotation_order",
//            "fy_quotation_order_detail",
//            "fy_money_order",
//            "fy_money_order_contract_detail",
//            "fy_sale_target",
//            "fy_sale_target_detail",
//            "fy_money_records",
//            "fy_project",
//            "fy_project_comment",
//            "fy_project_document",
//            "fy_project_file",
//            "fy_project_link",
//            "fy_project_log",
//            "fy_project_log",
//            "fy_project_task",
//            "fy_project_user",
////            "fy_contract_template",
//            "fy_honour_record",
//            "fy_honour_record_detail",
//            "fy_admin_log",
////            "fy_approve",
////            "fy_article",
////            "fy_article_cate",
////            "fy_article_comment",
////            "fy_article_keywords",
//            "fy_invoice",
//            "fy_invoice_detail",
//            "fy_invoice_income",
//            "fy_niche_clue",
////            "fy_schedule",
////            "fy_visit_record",
//            "fy_expense",
//            "fy_expense_interfix",
//            "fy_flow_step",
//            "fy_flow_record",
////            "fy_num_prefix",
////            "fy_message",
//
//
//        ];
//        foreach ($arr as $value){
//            Db::query("truncate table ".$value);
//        }
//        halt('清理成功');
//    }
}